<!DOCTYPE html>
<html>
  <head>
    <title>placeholder.html</title>
	
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
    <link rel="stylesheet" tyle="text/css" href="../css/jquery-ui-1.10.3.custom.min.css">
    <script type="text/javascript" src="../css/jquery-ui-1.10.3.custom.js"></script>
	<script type="text/javascript" src="../javascript/lib/jquery-1.9.1/jquery-1.9.1.min.js"></script>
	<!-- 用于特性检测 -->
	<script type="text/javascript" src="../javascript/lib/plusin/modernizr-1.7.min.js"></script>
	<script type="text/javascript">
		$(function(){
			if(!Modernizr.input.placeholder){
				$("input[type='text']").focus(function(){
					if($(this).val() == $(this).attr('placeholder')){
						$(this).val('');
					}
				});
				$("input[type='text']").blur(function(){
					if($(this).val() === ''){
						$(this).val($(this).attr('placeholder'));						
					}
				});
			}else{
				alert("ture");
			}
		})
	</script>
  </head>
  
  <body>
  	<form>
  		<input type="text" name="userName" placeholder="Enter Your Name" />
  		<input type="password" name="password" placeholder="Enter Your Password" />
  	</form>
  </body>
</html>
